package cn.edu.neusoft.food229.service;

import java.util.List;

import cn.edu.neusoft.food229.bean.Collect;
import cn.edu.neusoft.food229.bean.IsCollectBean;
import cn.edu.neusoft.food229.bean.Result;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface CollectService {
    //---------收藏/取消收藏店铺接口
    @GET( "userCollectShop.do")
    Call<Result> collectShop(@Query("user_id")String user_id, @Query("shop_id")String shop_id);
    //---------- 收藏/取消收藏菜谱接口
    @GET( "userCollectFood.do")
    Call<Result> collectFood(@Query("user_id")String user_id,@Query("food_id")String food_id);
    //-----------判断是否收藏接口
    @GET( "isCollected.do")
    Call<IsCollectBean> collect(@Query("user_id")String user_id,
                         @Query("shop_food_id")String shop_food_id,
                         @Query("flag") int flag);

//获取当前用户的所有收藏信息接口
    @GET("getAllUserCollection.do")
    Call<List<Collect>> collectList(@Query("user_id") String user_id,
                                    @Query("flag") int flag);



}
